This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
Subject: collect Json from View for use in dojo dataGrid
Feedback Type: Question
Product Area: Domino Server
Technical Area: Application Development
Platform: Windows
Release: 8.5.2
Reproducible: Not applicable
Hello community
I am working on performance tuning on our applications and need to do things different than it was done 10 years ago.
Quick wins can be gained with Dojo, Json and client side processing.
However I struggle with some basic tasks and also looking for best practice in doing these improvements:
1. Getting Json from Domino View via ?ReadViewEntries&outputformat=Json
Using itemFileReadStore or itemFileWriteStore does not seam to work with the url
Using dojo.xhrGet works and return Json object, however in load: function(data,ioargs){} section I cant add the data to an outside variable.
I can call a function handling the object from the Load statement. But doing this on addOnLoad makes my grid etc. unavailable (can do dojo.byId but not dijit.byId at this time)
As the lookup can take time I would prefer having the data store at this time.
Is there a way to get the Json and add it to a datagrid on a page/form? Using itemFileWriteStore works but then I need to customize the Json output.
2. That leads me to the other question I have spent hours on Google for: What is the best practice when it comes to retrieving Json from a view?
- Get the xml and convert it?
- Create duplicate views that show Json code?
- Or simply use the Json format? If so I need (I believe) to parse it and create a new Json object as I cannot see how I can insert the domino Json into a dataGrid.
Ohh at last, yes, the view can contain 3-400.000 documents (categorized), the database can be 50 GB. I don’t need more views, agents or other factors that increase IO load / server performance...
Goal is to replace 10 views of this kind with Json and process it client side.
Kind regards,
Thøger Amundsen
Feedback number WEBB8E5LYN created by ~Xagra Churesachekader on 02/16/2011
Status: Open
Comments: